<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8" />
	<title>这是一个测试</title>
	</head>
	<body>
		<img id="img1" alt="正在加载"></img>
		<img id="img2" alt="正在加载"></img>
		<img id="img3" alt="正在加载"></img>
		<script src="SuperImageLoader.js"></script>
		<script>
			window.imageList=[
			{
				id:"img1",
				url:"https://www.baidu.com/img/baidu_jgylogo3.gif",
				onload:function(){
						alert('第一张图片已加载完成！');
					} 
				},
				{ id:"img2", url:"https://www.baidu.com/img/baidu_jgylogo3.gif"},
				{ id:"img3", url:"https://www.baidu.com/img/baidu_jgylogo3.gif"}
			];
			window.onImageAllLoad=function(){
				alert('所有图片已加载！');
			}
			onLoadImage();
		</script>
	</body>
</html>